The buttons need to set min-width now, to make this work.
{
GtkWidget *label;
- /*
- * TODO: This is a hack to get the GtkStackSwitcher radio
- * buttons to look how we want. However, it's very
- * much font size specific.
- */
- gtk_widget_set_size_request (widget, 34, 34);
gtk_style_context_add_class (gtk_widget_get_style_context (widget), "circular");
label = gtk_bin_get_child (GTK_BIN (widget));
stackswitcher button.text-button {
min-width: 100px;
}
+
+stackswitcher button.circular {
+ min-width: 0px;
+}
.titlebar stackswitcher button.text-button.titlebutton {
min-width: 100px; }
+stackswitcher button.circular,
+stackswitcher .titlebar button.circular.titlebutton,
+.titlebar stackswitcher button.circular.titlebutton {
+ min-width: 0px; }
+
/* GTK NAMED COLORS
----------------
use responsibly! */
.titlebar stackswitcher button.text-button.titlebutton {
min-width: 100px; }
+stackswitcher button.circular,
+stackswitcher .titlebar button.circular.titlebutton,
+.titlebar stackswitcher button.circular.titlebutton {
+ min-width: 0px; }
+
/* GTK NAMED COLORS
----------------
use responsibly! */